package gui;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.JSeparator;
import javax.swing.SwingConstants;
import javax.swing.text.DefaultCaret;

import java.awt.Dimension;
import javax.swing.JScrollPane;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JButton;
import javax.swing.border.LineBorder;
import java.awt.Color;

public class VComentario extends JPanel {
	private JButton btnBorrar;

	/**
	 * Create the panel.
	 */
	public VComentario() {
		setBorder(new LineBorder(new Color(0, 0, 0)));
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{224, 179, 237, 0};
		gridBagLayout.rowHeights = new int[]{14, 91, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};
		setLayout(gridBagLayout);
		
		JLabel lblAutor = new JLabel("Autor");
		GridBagConstraints gbc_lblAutor = new GridBagConstraints();
		gbc_lblAutor.anchor = GridBagConstraints.WEST;
		gbc_lblAutor.insets = new Insets(0, 0, 5, 5);
		gbc_lblAutor.gridx = 0;
		gbc_lblAutor.gridy = 0;
		add(lblAutor, gbc_lblAutor);
		
		JLabel lblFecha = new JLabel("Fecha");
		GridBagConstraints gbc_lblFecha = new GridBagConstraints();
		gbc_lblFecha.anchor = GridBagConstraints.WEST;
		gbc_lblFecha.insets = new Insets(0, 0, 5, 5);
		gbc_lblFecha.gridx = 1;
		gbc_lblFecha.gridy = 0;
		add(lblFecha, gbc_lblFecha);
		
		btnBorrar = new JButton("Borrar");
		btnBorrar.setVisible(false);
		GridBagConstraints gbc_btnBorrar = new GridBagConstraints();
		gbc_btnBorrar.anchor = GridBagConstraints.EAST;
		gbc_btnBorrar.insets = new Insets(0, 0, 5, 0);
		gbc_btnBorrar.gridx = 2;
		gbc_btnBorrar.gridy = 0;
		add(btnBorrar, gbc_btnBorrar);
		
		JTextArea txtrManagerManagerIs = new JTextArea();
		txtrManagerManagerIs.setText("Manager: Manager is responsible for creating appropriate player object using an URL or a Media Locator.  Manager is also use to create a processor \u2013 will be explainedgfhlsgdhsrghjdhegljhwilthjrlhtjrhiojtoihjdoihjoigs\u00F1hoihgjfso\u00F1hijoghisfjohisfg\u00F1hofsjo\u00F1ihsfjohsfo\u00F1hfsjhosfhjsfo\u00F1hjsf\u00F1oghjohgjfs\u00F1oigManager: Manager is responsible for creating appropriate player object using an URL or a Media Locator.  Manager is also use to create a processor \u2013 will be explainedgfhlsgdhsrghjdhegljhwilthjrlhtjrhiojtoihjdoihjoigs\u00F1hoihgjfso\u00F1hijoghisfjohisfg\u00F1hofsjo\u00F1ihsfjohsfo\u00F1hfsjhosfhjsfo\u00F1hjsf\u00F1oghjohgjfs\u00F1oigh later.h later.");
		txtrManagerManagerIs.setRows(4);
		txtrManagerManagerIs.setLineWrap(true);
		txtrManagerManagerIs.setEditable(false);
		GridBagConstraints gbc_txtrManagerManagerIs = new GridBagConstraints();
		gbc_txtrManagerManagerIs.gridwidth = 3;
		gbc_txtrManagerManagerIs.fill = GridBagConstraints.BOTH;
		gbc_txtrManagerManagerIs.gridx = 0;
		gbc_txtrManagerManagerIs.gridy = 1;
		add(txtrManagerManagerIs, gbc_txtrManagerManagerIs);

	}

	public JButton getBtnBorrar() {
		return btnBorrar;
	}
}
